using System;
using System.Threading.Tasks;
using JlPay.Sdk.Core;
using JlPay.Sdk.Models.Openmerch.Register;

namespace JlPay.Sdk.Services.Openmerch.Register
{
    /// <summary>
    /// 进件查询服务
    /// </summary>
    public class IncomingQueryService : BaseService
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="config">配置对象</param>
        public IncomingQueryService(Config config) : base(config)
        {
        }

        /// <summary>
        /// 查询进件申请
        /// </summary>
        /// <param name="request">请求对象</param>
        /// <returns>响应对象</returns>
        public async Task<IncomingQueryResponse> QueryIncomingAsync(IncomingQueryRequest request)
        {
            return await PostAsync<IncomingQueryRequest, IncomingQueryResponse>(request, IncomingQueryRequest.API_URL);
        }
    }
} 